#include <iostream>
using namespace std;



int main(){
	double n,a,x,b,y;
	cin>>n>>a>>x>>b>>y;
	cout<<(n/((x/a)+(y/b)));
	return 0;
}
